﻿<UserControl x:Class="AttentenceCheckSystem.ReportCtrl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:AttentenceCheckSystem"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800">
    <UserControl.Resources>
        <local:DateConverter x:Key="DateConverter"/>
        <local:TimeConverter x:Key="TimeConverter"/>
    </UserControl.Resources>
    <ScrollViewer>
        <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <TextBlock Text="OK"/>
            <TextBlock TextWrapping="Wrap" Name="textBlock" Text="{Binding Path=Memo}"/>
            <ListView Name="listView1" ItemsSource="{Binding Path=items}">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="日期" DisplayMemberBinding="{Binding date, Converter={StaticResource DateConverter}}"/>
                        <GridViewColumn Header="规定上班时间" DisplayMemberBinding="{Binding RegularCheckInTime, Converter={StaticResource TimeConverter}}"/>
                        <GridViewColumn Header="上班打卡时间" DisplayMemberBinding="{Binding CheckInTime, Converter={StaticResource TimeConverter}}"/>
                        <GridViewColumn Header="规定下班时间" DisplayMemberBinding="{Binding RegularCheckOutTime, Converter={StaticResource TimeConverter}}"/>
                        <GridViewColumn Header="下班打卡时间" DisplayMemberBinding="{Binding CheckOutTime, Converter={StaticResource TimeConverter}}" />
                        <GridViewColumn Header="考勤异常情况" DisplayMemberBinding="{Binding status}"/>
                    </GridView>
                </ListView.View>
            </ListView>
        </StackPanel>
    </ScrollViewer>
</UserControl>
